package pbbltobpel.model;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

public class Import implements IXmlWriter{
	private String location;
	private String namespace;
	private String importType;
	
	public String getImportType() {
		return importType;
	}
	public void setImportType(String importType) {
		this.importType = importType;
	}
	public String getNamespace() {
		return namespace;
	}
	public void setNamespace(String namespace) {
		this.namespace = namespace;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	
	@Override
	public Element getXmlElement(Document doc) {
		Element element = doc.createElement("bpel:import");
		element.setAttribute("location", location);
		element.setAttribute("namespace", namespace);
		element.setAttribute("importType", importType);
		return element;
	}
}
